﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace BusinessObjects.Models
{
    [DataContract]
    public class Order
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public DateTime Date { get; set; }

        [DataMember]
        public int State { get; set; }

        [DataMember]
        public User User { get; set; }

        [DataMember]
        public int UserId { get; set; }

        [DataMember]
        public virtual ICollection<OrderItem> OrderItems { get; set; }

        [DataMember]
        public double TotalSumm { get; set; }
    }
}